package android.slc.appbase.entity;

import java.io.Serializable;
import java.util.List;

public class Page<T> implements Serializable {
    /**
     * 总记录数
     */
    private int total;
    /**
     * 当前页
     */
    private int current;
    /**
     * 总页数
     */
    private int pages;
    /**
     * 是否最后一页
     */
    private Boolean lastPage;
    /**
     * 当前页的数量
     */
    private int size;
    /**
     * 列表
     */
    private List<T> rows;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public Boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(Boolean lastPage) {
        this.lastPage = lastPage;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}